package com.gxz.boot.condition;

import org.mapstruct.InjectionStrategy;
import org.mapstruct.Mapper;

import java.util.List;

@Mapper(componentModel = "spring", injectionStrategy = InjectionStrategy.CONSTRUCTOR)
public interface BeanConvert {

    // 属性相同，不需要映射
    BeanModel toDTO(BeanU paramDO);

    List<BeanModel> toDTOList(List<BeanU> paramDOList);
}